package tk.uodrad.apex.project.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import tk.uodrad.apex.project.pojo.dto.AssetEquipmentAddNewDTO;
import tk.uodrad.apex.project.pojo.dto.AssetEquipmentUpdateDTO;
import tk.uodrad.apex.project.pojo.entity.AssetEquipment;
import com.baomidou.mybatisplus.extension.service.IService;
import tk.uodrad.apex.project.pojo.vo.AssetEquipmentListVO;

/**
* @author Administrator
* @description 针对表【asset_equipment_management】的数据库操作Service
* @createDate 2023-04-06 19:28:52
*/
public interface AssetEquipmentService extends IService<AssetEquipment> {
    /**
     * 添加单个设备
     * @param assetEquipmentAddNewDTO 添加设备DTO
     */
    void save(AssetEquipmentAddNewDTO assetEquipmentAddNewDTO);
    /**
     * 根据ID查询设备
     * @param id
     */
    AssetEquipment selectById(Long id);
    /**
     * 根据ID修改设备
     * @param assetEquipmentUpdateDTO 修改设备DTO
     */
    void updateById(AssetEquipmentUpdateDTO assetEquipmentUpdateDTO);

    /**
     * 分页查询设备列表
     * @param pageNum 第几页
     * @param pageSize 每页多少条数据
     * @param communityCode 小区编号
     * @return IPage<AssetEquipmentListVO> AssetEquipmentListVO分页对象
     */
    IPage<AssetEquipmentListVO> list(Integer pageNum, Integer pageSize, String communityCode);
}
